package com.candy.service.impl;

import com.candy.bean.UserInfo;
import com.candy.dao.UserInfoMapper;
import com.candy.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    UserInfoMapper userInfoMapper;
    @Override
    public boolean register(UserInfo userInfo) {
        int count  = userInfoMapper.insertSelective(userInfo);
        if(count > 0){return true;}
        else return false;
    }
}
